package com.qianfeng.yime.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by IDEA
 * User : SL
 * on  2015/3/10.
 * 19:52
 */
public class User {

    private String birthday;//,
    private int checkin;// 1,
    private int cityId;// 0,
    private String description;//,
    private String email;//,
    private int grade;// 0,
    private int height;// 0,
    private int id;// 86640,
    private int isDel;// 0,
    private int isResume;// 0,
    private String lastIp;//,
    private int lastTime;// 0,
    private String loginName;//sl_1314,
    private String loginPassword;//25f9e794323b453885f5181f1b624d0b,
    private String major;//,
    private String name;//,
    private String namepy;//,
    private String phone;//18811447834,
    private String photo;///upload/avater/20150309173227_813.jpg,
    private String photoscale;///upload/avater/20150309173227_484scale.jpg,
    private String qq;//,
    private int qrcode;// 0,
    private int rate;// 0,
    private String recommcode;//,
    private String regIp;//119.255.55.29,
    private String regSource;//,
    private int regTime;// 1425816232,
    private String school;//,
    private int schoolId;// 0,
    private int score;// 61,
    private int sex;// 0,
    private int weight;// 0
    
    public void parseJson(JSONObject jsonObject){
        try {
            birthday = jsonObject.getString("birthday");//
            checkin = jsonObject.getInt("checkin");// 1
            cityId = jsonObject.getInt("cityId");// 0
            description = jsonObject.getString("description");//
            email = jsonObject.getString("email");//
            grade = jsonObject.getInt("grade");// 0
            height = jsonObject.getInt("height");// 0
            id = jsonObject.getInt("id");// 86640
            isDel = jsonObject.getInt("isDel");// 0
            isResume = jsonObject.getInt("isResume");// 0
            lastIp = jsonObject.getString("lastIp");//
            lastTime = jsonObject.getInt("lastTime");// 0
            loginName = jsonObject.getString("loginName");// sl_1314
            loginPassword = jsonObject.getString("loginPassword");// 25f9e794323b453885f5181f1b624d0b
            major = jsonObject.getString("major");//
            name = jsonObject.getString("name");//
            namepy = jsonObject.getString("namepy");//
            phone = jsonObject.getString("phone");// 18811447834
            photo = jsonObject.getString("photo");// /upload/avater/20150309173227_813.jpg
            photoscale = jsonObject.getString("photoscale");// /upload/avater/20150309173227_484scale.jpg
            qq = jsonObject.getString("qq");//
            qrcode = jsonObject.getInt("qrcode");// 0
            rate = jsonObject.getInt("rate");// 0
            recommcode = jsonObject.getString("recommcode");//
            regIp = jsonObject.getString("regIp");// 119.255.55.29
            regSource = jsonObject.getString("regSource");//
            regTime = jsonObject.getInt("regTime");// 1425816232
            school = jsonObject.getString("school");//
            schoolId = jsonObject.getInt("schoolId");// 0
            score = jsonObject.getInt("score");// 61
            sex = jsonObject.getInt("sex");// 0
            weight = jsonObject.getInt("weight");
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    public String getBirthday() {
        return birthday;
    }

    public int getCheckin() {
        return checkin;
    }

    public int getCityId() {
        return cityId;
    }

    public String getDescription() {
        return description;
    }

    public String getEmail() {
        return email;
    }

    public int getGrade() {
        return grade;
    }

    public int getHeight() {
        return height;
    }

    public int getId() {
        return id;
    }

    public int getIsDel() {
        return isDel;
    }

    public int getIsResume() {
        return isResume;
    }

    public String getLastIp() {
        return lastIp;
    }

    public int getLastTime() {
        return lastTime;
    }

    public String getLoginName() {
        return loginName;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public String getMajor() {
        return major;
    }

    public String getName() {
        return name;
    }

    public String getNamepy() {
        return namepy;
    }

    public String getPhone() {
        return phone;
    }

    public String getPhoto() {
        return photo;
    }

    public String getPhotoscale() {
        return photoscale;
    }

    public String getQq() {
        return qq;
    }

    public int getQrcode() {
        return qrcode;
    }

    public int getRate() {
        return rate;
    }

    public String getRecommcode() {
        return recommcode;
    }

    public String getRegIp() {
        return regIp;
    }

    public String getRegSource() {
        return regSource;
    }

    public int getRegTime() {
        return regTime;
    }

    public String getSchool() {
        return school;
    }

    public int getSchoolId() {
        return schoolId;
    }

    public int getScore() {
        return score;
    }

    public int getSex() {
        return sex;
    }

    public int getWeight() {
        return weight;
    }
}